// RichEditLib.h

#ifndef _RichEditLib_h_
#define _RichEditLib_h_

class RichEditLib 
{    
private:
	HMODULE h_;
public:   
	RichEditLib()  : h_(LoadLibrary(_T("riched20.dll")))   
	{      
		if (!h_)       AfxMessageBox("Cannot load \"riched20.dll\".");  
	}    
	~RichEditLib() 
	{       
		FreeLibrary(h_); 
	}
};



#endif

